package com.sjh.test.java8.lambda;

import java.util.Arrays;
import java.util.List;

public class LambdaTest1 {
    public static void main(String[] args)
    {
        LambdaTest1 tester = new LambdaTest1();
        tester.run();
    }

    public void run()
    {
        List<String> list = Arrays.asList("Action","Cebci","Back");

        // 输出
        for(String st: list){
            System.out.println(st);
        }

        // 转换为大写
        for(String st: list){
            upperAndPrint(st);
        }
    }

    public static void upperAndPrint(String s)
    {
        System.out.println(s.toUpperCase());
    }
}
